﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified"
           elementFormDefault="qualified"
           targetNamespace="http://majesty-of-omega/ResearchConfiguration.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="ResearchConfiguration">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="FundingLevels">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Funding">
                <xs:complexType>
                  <xs:attribute name="Id" type="xs:string" use="required" />
                  <xs:attribute name="Unicode" type="xs:string" use="required" />
                  <xs:attribute name="Percentage" type="xs:unsignedByte" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ProjectOverrun">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="ProjOverEntry">
                <xs:complexType>
                  <xs:attribute name="Percentage" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="ChancePercent" type="xs:decimal" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="OverrunAmount">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="OverAmountEntry">
                <xs:complexType>
                  <xs:attribute name="Percentage" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="StartPercent" type="xs:unsignedByte" use="required" />
                  <xs:attribute name="EndPercent" type="xs:unsignedByte" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ResearchDefaults">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PrimaryFieldCost" type="xs:decimal" />
              <xs:element name="SecondaryFieldCost" type="xs:decimal" />
              <xs:element name="PercentagePerTurnMin" type="xs:decimal" />
              <xs:element name="PercentagePerTurnMax" type="xs:decimal" />
              <xs:element name="PercentForFundamental" type="xs:unsignedByte" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>